<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/view/common/common.jsp"%>


	<script type="text/javascript">
		function searchData() {
			$('#tab').datagrid('load',serializeForm($('#mySearchForm')));
		}
		
		function formatData(val, row) {
			if(val==null || val=="" || val==undefined){
				return "后台充值";
			}else{
				return val;
			}
		}
		function formatTransferIn(val, row) {
			if(val==null || val=="" || val==undefined){
				return "兑换";
			}else{
				return val;
			}
		}
		
		function formatParentIP(val, row) {
			if(val==null || val=="" || val==undefined){
				return "-";
			}else{
				return val;
			}
		}
	</script>

</head>
<body>

<div class="easyui-panel" fit="true">
	<div id="jqueryToolbar" style="padding:auto;height:auto">
		<div style="margin-top:5px; padding-bottom:8px; border-bottom:1px solid #ccc;">
			<form id="mySearchForm" action="" method="Post">
				转出方手机号:<input type="text" id="phone_out" name="phone_out" class="easyui-textbox"  style="width: 100px; height: 25px;"/>
				转入方手机号:<input type="text" id="phone_in" name="phone_in" class="easyui-textbox"  style="width: 100px; height: 25px;"/>
				父节点手机号:<input type="text" id="phone_par" name="phone_par" class="easyui-textbox"  style="width: 100px; height: 25px;"/>
				<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchData()">查询</a>
			</form>
		</div>
	</div>
	<div id="system_user_list_tb" style="height: auto; padding-left: auto;">
	</div>
	<table id="tab" class="easyui-datagrid" fit="true" style="height:auto;width:auto;" url="${ctx}/tIncome/getTIncomeList.do"
		   rownumbers="true" pagination="true" pagePosition="top" singleSelect="true"  toolbar="#system_user_list_tb">
		<thead>
		<tr>
			<th field="nick_name_out" width="100" align="center" data-options="formatter:formatData" >转出方</th>
			<th field="phone_out" width="100" align="center" data-options="formatter:formatData" >转出方手机号</th>
			<th field="nick_name_in" width="100" align="center" data-options="formatter:formatTransferIn"  >转入方</th>
			<th field="phone_in" width="100" align="center" data-options="formatter:formatTransferIn"  >转入方手机号</th>
			<th field="ifip_num" width="100" align="center">转账数量</th>
			<th field="nick_name_par"  width="100" align="center" style="display: none;">父节点昵称</th>
			<th field="phone_par"  width="100" align="center">父节点手机号</th>
			<th field="parent_income_ifiv" width="100" align="center" data-options="formatter:formatParentIP" >父节点IFIV收益</th>
			<th field="parent_income_ifip" width="100" align="center" data-options="formatter:formatParentIP" >父节点IFIP收益</th>
			<th field="create_time"  width="160" align="center">创建时间</th>
		</tr>
		</thead>
	</table>
</div>
</body>
</html>
